all: main


dijkstra: dijkstra.o binaryHeap.o graph.o
	g++ dijkstra.o binaryHeap.o graph.o -o dijkstra

dijkstra.o: dijkstra.cpp
	g++ -c dijkstra.cpp



main: main.o binaryHeap.o graph.o
	g++ main.o binaryHeap.o graph.o -o dijkstra

main.o: main.cpp
	g++ -c main.cpp

binaryHeap.o: binaryHeap.cpp binaryHeap.h
	g++ -c binaryHeap.cpp binaryHeap.h

graph.o: graph.cpp graph.h
	g++ -c graph.cpp graph.h

heapTest: binaryHeap.o heapTest.o
	g++ binaryHeap.o heapTest.o -o heapTest

heapTest.o: heapTest.cpp
	g++ -c heapTest.cpp

clean:
	rm *.o main heapTest dijkstra
